import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '../src/icons' // icon
import './less/index.css'
import '@/permission'
import ZkTable from 'vue-table-with-tree-grid'  
// 禁用前进后退
// import { banBackSpace} from '@/utils/banBackSpace'
// document.onkeydown = banBackSpace;
// // 禁用浏览器前进后退
// window.history.pushState(null, null, window.location.href);
// window.addEventListener('popstate', function () {
//   window.history.forward(1);
  
//   window.history.pushState(null, null, window.location.href);
// });
import VueQuillEditor from 'vue-quill-editor'

// 导入富文本编辑器的样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

import VueCookies from 'vue-cookies'
// 拖拽
import VueDND from 'awe-dnd'

import Print from 'vue-print-nb'
   Vue.use(Print);
   import VXETable from 'vxe-table'
   import 'vxe-table/lib/style.css'

   Vue.use(VXETable)
   
Vue.use(VueDND)
Vue.use(VueCookies)

Vue.use(VueQuillEditor)
Vue.component(ZkTable.name, ZkTable);
Vue.use(ElementUI);

Vue.config.productionTip = false
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
}).$mount('#app')

